package com.mata.worktime.configuration.dingtalk;

public class UrlConstant {
    private static final String HOST = "https://oapi.dingtalk.com";

    /**
     * 钉钉网关 gettoken 地址
     */
    public static final String URL_GET_TOKEN = HOST + "/gettoken";

    /**
     * 获取 jsapi_ticket 地址
     */
    public static final String URL_GET_JSTICKET = HOST + "/get_jsapi_ticket";

    /**
     * 获取用户在企业内 userId 的接口URL
     */
    public static final String URL_GET_USER_INFO = HOST + "/user/getuserinfo";

    /**
     * 获取用户姓名的接口URL
     */
    public static final String URL_USER_GET = HOST + "/user/get";

    /**
     * 获取部门列表接口URL
     */
    public static final String URL_DEPARTMENT_LIST = HOST + "/department/list";

    /**
     * 获取部门用户接口URL
     */
    public static final String URL_USER_SIMPLELIST = HOST + "/user/simplelist";

    /**
     * v2获取部门列表
     */
    public static final String v2_URL_DEPARTMENT_LIST = HOST + "/topapi/v2/department/listsub";

    /**
     * v2获取用户列表
     */
    public static final String v2_URL_USER_LIST = HOST + "/topapi/v2/user/list";


    /**
     * 向用户发送工作消息
     */
    public static final String URL_SEND_WORKMESSAGE = HOST + "/topapi/message/corpconversation/asyncsend_v2";
}
